package com.itheima.reggie.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    //订单信息保存
    void save(Order order);

    //后台订单查询
    Page<Order> findOrder(String number, Integer pageNum, Integer pageSize,String beginTime,String endTime);


    //历史订单
    Page<Order> historyOrNewOrder(Integer page, Integer pageSize);

    //分页(后台用)
    Page<Order> findByPage(Long number, Date beginTime, Date endTime, Integer pageNum, Integer pageSize);

}
